/* 全局 Toast 样式（浅底） */

.el-message.toast-global {
    box-shadow: 0px 4px 16px 0px #0000001a;
    background: rgb(var(--bg-rgb), 0.9);
    color: var(--ct1);
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    border: 0;
}

.el-message.toast-global .el-message__content {
    color: var(--ct1);
}

.el-message.toast-global .el-message__icon svg {
    width: 100%;
    height: 100%;
}

/* 隐藏内置 SVG */
.el-message.toast-global .el-message__icon svg {
    display: none;
}

.el-message.toast-global.el-message--success .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/success.png") no-repeat center/contain;
}

.el-message.toast-global.el-message--error .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/error.png") no-repeat center/contain;
}

.el-message.toast-global.el-message--warning .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/warning.png") no-repeat center/contain;
}

.el-message.toast-global.el-message--info .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/info.png") no-repeat center/contain;
}

.el-message.toast-global.el-message--primary .el-message__icon {
    display: none;
}

.el-message.toast-global.el-message--primary {
    padding: 8px 16px;
}

/* 局域 Toast 样式（深底） */
.el-message.toast-part {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    background: rgb(var(--msg-part-bg-rgb), 0.9);
    opacity: 0.9;
    border: 0;
    border-radius: 8px;
    box-shadow: 0px 4px 8px 0px #0000001a;
    padding: 16px;
    gap: 8px;
}

.el-message.toast-part .el-message__content {
    color: var(--ct4);
    font-size: 14px;
}

.el-message.toast-part .el-message__icon svg {
    width: 100%;
    height: 100%;
}

/* 隐藏内置 SVG */
.el-message.toast-part .el-message__icon svg {
    display: none;
}

.el-message.toast-part.el-message--success .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/success-dark.png") no-repeat center/contain;
}

.el-message.toast-part.el-message--error .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/error-dark.png") no-repeat center/contain;
}

.el-message.toast-part.el-message--warning .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/warning-dark.png") no-repeat center/contain;
}

.el-message.toast-part.el-message--info .el-message__icon {
    width: 24px;
    height: 24px;
    background: url("@/assets/toast/info-dark.png") no-repeat center/contain;
}

.el-message.toast-part.el-message--primary .el-message__icon {
    display: none;
}

.el-message.toast-part.el-message--primary {
    padding: 8px 16px;
}